 xquery version "1.0"; 
 for $c in //concept, 
 $s in $c/source 
 where $s/@id="bib.xml" and $s/xpath="/bib/book/year" 
 
 
 return    <relational>     

 <column>{$c/relational/name/text()}</column>     
 <table>{$c/relational/table/text()}</table>     
 <domain>{$c/relational/domain/text()}</domain>   
 
 </relational>